<?
global $db;

foreach (array("datestart","dateend") as $f) {
	if (!$params["value"]["{$f}_enabled"]) {
		#echo "null me";
		$db->autoquery("update",$this->table,array(
			$this->key=>$this->id,
			$f=>"",
			));
		}
	}
#die;
?>
